package com.ccsoft.gsms.service;

import com.ccsoft.gsms.dao.SysPermissionMapper;
import com.ccsoft.gsms.model.SysPermission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:SysPermissionServiceImpl
 * @Description:TODO
 * @Author:chanchaw
 * @Date:2019-11-26 12:10
 * @Version:1.0
 **/
@Service
public class SysPermissionServiceImpl implements SysPermissionService {

    @Autowired
    private SysPermissionMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(SysPermission record) {
        return dao.insert(record);
    }

    @Override
    public SysPermission selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public List<SysPermission> selectAll() {
        return dao.selectAll();
    }

    @Override
    public int updateByPrimaryKey(SysPermission record) {
        return dao.updateByPrimaryKey(record);
    }
}
